Dynamic Factory - New Possibilities For Factory Design Pattern

نویسنده

  • Dawid R. Ireno
چکیده

Software design patterns have been within developers' realm of influence for several years now. They come from every possible direction, indicating the best courses of action for problem-solving, and are well documented in numerous articles, magazines, and books. Some are corner stones, constituting the foundation of software development. Others are highly evolved complex constructions using other patterns as building blocks to bring about higher quality in more challenging situations. After years of experience in the Information Technology industry, every experienced developer has his own way of perceiving certain design patterns which he has used, and heard, read or talked about. But as the years pass, technology evolves, software design pattern knowledge is still not yet finally distilled, and new design patterns are created. In this article a new design pattern, which the author has called the dynamic factory, is explained. The new type of factory enhances the design pattern possibilities known so far. It creates new object types according to the situation, containing just what is needed, and nothing redundant.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Alternative Structure for the Abstract Factory Software Design Pattern

The abstract factory design pattern is a well known and widely applied design in the construction of object-oriented software. An amendment to the abstract factory is presented based on the \envelope/letter" idiom. This results in factory products being instantiated in application code in a manner apparently independent of the factory pattern. Application code can thus forget about the factory,...

متن کامل

Better Construction with Factories

class Application { List docs; protected abstract new Document(); public void newDocument() { // Handles the File|New menu option doc = new Document(); docs.add(doc); doc.open(); } // ... rest of the class omitted } (a) The abstract Application class class MyApplication extends Application { protected new Document() { return new MyDocumentType(); // A concrete subtype } // ... rest of...

متن کامل

A benchmark proposal for design pattern detection

FactoryDef : DPDef name = "Abstract Factory" L1 : LevelDef AF : RoleDef name = "Abstract Factory" L2 : LevelDef L3 : LevelDef CF : RoleDef name = "Concrete Factory" AP : RoleDef name = "Abstract Product" L4 : LevelDef CP : RoleDef name = "Concrete Product" root

متن کامل

Design and Use of Industrial Software Architectures

Factory. The abstract factory pattern provides an interface to creating a family of related objects without specifying their concrete classes. Often when using reusable software, such as object-oriented frameworks, selecting one type of component in part of the framework restricts the selection of component types in other parts of the framework. The typical example are user-interface frameworks...

متن کامل

Automatic Recommendation of Software Design Patterns Using Anti-patterns in the Design Phase: A Case Study on Abstract Factory

Anti-patterns, one of the reasons for software design problems, can be solved by applying proper design patterns. If anti-patterns are discovered in the design phase, this should lead an early pattern recommendation by using relationships between antiand design patterns. This paper presents an idea called Antipattern based Design Pattern Recommender (ADPR), that uses design diagrams i.e. class ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014